Older browsers that do not support scripts will display the script as page content. To prevent them from doing this, you can use the HTML comment tag:
<script type="text/javascript"> <!-- some statements //--> </script> |
The two forward slashes in front of the end of comment line (//) are a JavaScript comment symbol, and prevent the JavaScript from trying to compile the line.
Note that you can't put // in front of the first comment line (like //<!--), because older browsers will display it. Funny? Yes! But that's the way it is